set(SOURCES "main.cpp"
            "my_events.cpp"
            "my_timer.cpp"
            "system.cpp"
)

file(GLOB BOARD_SOURCES
     "${CMAKE_CURRENT_SOURCE_DIR}/device/*.cpp")

list(APPEND SOURCES ${BOARD_SOURCES})

set(INCLUDE_DIRS "." "device")

idf_component_register(SRCS ${SOURCES}
                       INCLUDE_DIRS ${INCLUDE_DIRS})